package com.apps.config;

import com.apps.sworld.sConfig;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * 配置文件上传路径
 */
@Data
@Configuration
@ConfigurationProperties(prefix="upload")
public class UPloadConfig implements sConfig {

    private String rootpath;

    private String prefix;

    private String resource;

    private String images;

    private String files;

    public String getRootpath() {
        return System.getProperty("user.dir").replaceAll("\\\\","/")+rootpath;
    }
}
